package com.guoranhao.tool.utils;

/**
 * 
 * @Description 快速拷贝,比反射和json都要快
 * Copyright (c) Department of Research and Development/Beijing
 * All Rights Reserved.
 * @version 1.0  2017年11月14日 下午6:31:40  by 祝展 创建
 */
public class FastCopy {
		
	public static <T> T copy(Object bean,Class c){
		byte[] bs = SerializationUtil.serialize(bean);
		T vo = (T) SerializationUtil.deserialize(bs, c);
		return vo;
	}

}
